<!DOCTYPE html>
<html>
{include file='/common/_meta'}
<body>
	<!-- 头部 -->
{include file='/common/top'}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
        {include file='/common/left'}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="{:url('Index/index')}">系统</a>
                        </li>
                                            <li>
                            <a href="{:url('arti/lst')}">文章管理</a>
                        </li>
                        <li class="active">编辑文章</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">编辑文章</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">

                        <input type="hidden" name="ar_id" value="{$categorys.ar_id}">
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">上级分类</label>
                            <div class="col-sm-6">
                                <select name="ar_cateid">
                                    {volist name="artilist" id="category"}
                                    <option {if condition="$categorys['ar_cateid'] eq $category['cate_id']"} selected="selected" {/if} value="{$category.cate_id}"
                                >
                                    
                                     {if condition="$category['cate_pid'] neq 0"}
                                     |
                                     {/if}
                                     <?php echo str_repeat('-',$category['lever']*5); ?>{$category.cate_name}
                                    </option>
                                    {/volist}
                                </select>
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">文章标题</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" placeholder="" name="ar_title" type="text" value="{$categorys.ar_title}">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">文章关键词</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" placeholder="" name="ar_keywords" type="text" value="{$categorys.ar_keywords}">
                            </div>
                            <p class="help-block col-sm-4 red"></p>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">文章描述</label>
                            <div class="col-sm-6">
                                <textarea class="form-control" id="username" name="ar_description">{$categorys.ar_description}</textarea>
                            </div>
                            <p class="help-block col-sm-4 red"></p>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">发布人</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" placeholder="" name="ar_autor" type="text" value="{$categorys.ar_autor}">
                            </div>
                            <p class="help-block col-sm-4 red"></p>
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">电子邮件</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" placeholder="" name="ar_email" type="text" value="{$categorys.ar_email}">
                            </div>

                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">友情链接</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" placeholder="" name="ar_linkurl" type="text" value="{$categorys.ar_linkurl}">
                            </div>

                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">文章图片</label>
                            <div class="col-sm-6">
                                <input id="username" name="ar_thumbnail" type="file" value="{$categorys.ar_thumbnail}">
                                {if condition="$categorys['ar_thumbnail'] neq ''"}
                                    <img class="imgss" src="__upload__/{$categorys.ar_thumbnail}" style="height: 30px">
                                    <input type="button" id='dell' value="删除">
                                    {else/}

                                    暂无图片
                                {/if}

                            </div>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">内容</label>
                            <div class="col-sm-6">
                                <textarea id="content" name="ar_content">{$categorys.ar_content}</textarea>
                            </div>
                            <p class="help-block col-sm-4 red"></p>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否置顶</label>
                            <div class="col-sm-6">
                                <div class="radio" style="float:left; padding-right: 10px;">
                                    <label>
                                        <input class="inverted colored-blue" value="1" name="ar_top" type="radio" {if condition="$categorys['ar_top'] eq 1"} checked="checked" {/if}>
                                        <span class="text">是</span>
                                    </label>
                                </div>
                                <div class="radio" style="float:left">
                                    <label>
                                        <input class="inverted colored-blue" value="0" {if condition="$categorys['ar_top'] eq 0"} checked="checked" {/if} name="ar_top" type="radio">
                                        <span class="text">否</span>
                                    </label>
                                </div>
                            </div>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">是否显示</label>
                            <div class="col-sm-6">
                                <div class="radio" style="float:left; padding-right: 10px;">
                                    <label>
                                        <input class="inverted colored-blue" value="1" {if condition="$categorys['ar_status'] eq 1"} checked="checked" {/if} name="ar_status" type="radio">
                                        <span class="text">是</span>
                                    </label>
                                </div>
                                <div class="radio" style="float:left">
                                    <label>
                                        <input class="inverted colored-blue" value="0" {if condition="$categorys['ar_status'] eq 0"} checked="checked" {/if} name="ar_status" type="radio">
                                        <span class="text">否</span>
                                    </label>
                                </div>
                            </div>
                        </div>


                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label no-padding-right">发布时间</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="username" value="{$categorys.ar_addtime}" name="ar_addtime" type="text">
                            </div>

                        </div>
 

                        
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">保存信息</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    {include file='/common/footer'}
    <script>
        $("#dell").click(function(){
            $(this).remove();
            $(".imgss").remove();
        });

    </script>                               


</body></html> 